
#ifndef _CAN_H
#define _CAN_H


int CAN0SendFrame(unsigned long id, 
                         unsigned char priority, 
                         unsigned char length, 
                         unsigned char *txdata );
int CAN1SendFrame(unsigned long id, 
                         unsigned char priority, 
                         unsigned char length, 
                         unsigned char *txdata );
int CAN4SendFrame(unsigned long id, 
                         unsigned char priority, 
                         unsigned char length, 
                         unsigned char *txdata );                         
unsigned long standard_id_mscanid(unsigned long id);
unsigned long extended_id_mscanid(unsigned long id);

void interrupt 38  CAN0RxISR(void);
void interrupt 54  CAN4RxISR(void);


#endif